#include "StdAfx.h"
#include "Ray.h"

CRay::CRay(void)
{
}

CRay::CRay(const CPoint3D& _origin, const CPoint3D& _direction)
{
	origin = _origin;
	direction = _direction;
	direction.Normalize();
}
CRay::~CRay(void)
{

}
CPoint3D& CRay::GetOrigin()
{
	return origin;
}
CPoint3D& CRay::GetDirection()
{
	return direction;
}
void CRay::SetOrigin(const CPoint3D& _origin)
{
	origin = _origin;
}
void CRay::SetDirection(const CPoint3D& _direction)
{
	direction = _direction;
	direction.Normalize();
}